package datastructures.stack;

/**
 * @author hck
 */
public class TestLinkedStack {
    public static void main(String[] args) {
        LinkedStack<Integer> linkedStack = new LinkedStack<>();
        linkedStack.push(1);
        linkedStack.push(2);
        linkedStack.push(3);
        linkedStack.push(4);
        linkedStack.push(5);
        linkedStack.push(6);
        linkedStack.print();

        System.out.println("pop data:" + linkedStack.pop());
        System.out.println("pop data:" + linkedStack.pop());
        System.out.println("pop data:" + linkedStack.pop());
        linkedStack.print();
    }
}
